package au.com.iglootech.TaxTimeToolTip.Entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class Task implements IGTDomainEntity {


	/**
	 * 
	 */
	private static final long serialVersionUID = -2470301139914192849L;


	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;  
    @Persistent
    private String taskName;
    @Persistent(defaultFetchGroup="true")
    private Company company;
    @Persistent
    private Integer period;
    @Persistent
    private Double unit;
    @Persistent
    private Boolean invoiced = false;
    @Persistent
    private Date startDate;
    @Persistent
    private Date invoicedDate;
    @Persistent
    private String description;
    @Persistent
    private Integer invoiceNumber;
       
    
    public Task()
    {
    	
    }


	public Key getKey() {
		return key;
	}


	public void setKey(Key key) {
		this.key = key;
	}


	public String getTaskName() {
		return taskName;
	}


	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}


	public Company getCompany() {
		return company;
	}


	public void setCompany(Company company) {
		this.company = company;
	}


	public Integer getPeriod() {
		return period;
	}


	public void setPeriod(Integer period) {
		this.period = period;
	}


	public Double getUnit() {
		return unit;
	}


	public void setUnit(Double unit) {
		this.unit = unit;
	}


	public Boolean getInvoiced() {
		return invoiced;
	}


	public void setInvoiced(Boolean invoiced) {
		this.invoiced = invoiced;
	}


	public Date getStartDate() {
		return startDate;
	}


	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public Date getInvoicedDate() {
		return invoicedDate;
	}


	public void setInvoicedDate(Date invoicedDate) {
		this.invoicedDate = invoicedDate;
	}


	public Integer getInvoiceNumber() {
		return invoiceNumber;
	}


	public void setInvoiceNumber(Integer invoiceNumber) {
		this.invoiceNumber = invoiceNumber;
	}

        
}
